import request from "@/utils/request"

/**
 * 获取品牌
 * @param {Integer} limit - 品牌个数
 * @returns Promise
 */
export const findBrand = (limit = 6) => {
    return request('/home/brand', 'get', {limit})
}

// 获取广告图
export const findBanner = () => {
    return request('/home/banner', 'get')
}

// 获取主体-新鲜好物
export const findNew = () => {
    return request ('home/new', 'get')
}

// 获取主体-人气推荐
export const findHot = () => {
    return request('home/hot', 'get')
}

// 商品区块
export const findGoods = () => {
    return request('home/goods', 'get')
}

// 最新专题
export const findSpecial = () => {
    return request ('home/special', 'get')
}